package com.iot08.api.controller;

import com.iot08.api.controller.base.BaseController;
import com.iot08.api.service.CallRecordService;
import com.iot08.api.vo.request.CallRecordQueryVo;
import com.iot08.common.utils.response.ResponseMap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author cwj
 * @description
 * @date 2025/3/4 15:56
 **/
@Slf4j
@RestController
@RequestMapping("getway/callRecord")
public class CallRecordController extends BaseController {

    @Resource
    private CallRecordService callRecordService;
    @GetMapping("/query")
    public ResponseMap queryCallRecord(@Validated CallRecordQueryVo vo) {
        return callRecordService.queryCallRecord(vo);
    }

}
